Skip to content

Conversation

@ValbuenaVC
Copy link
Contributor

Description

Adds pyrit.scenario.dataset and pyrit.scenario.dataset.ScenarioDatasetUtils to compartmentalize common dataset loading patterns for Scenarios.

Tests and Documentation

IP

return seed_prompts

@classmethod
def get_seed_dataset(cls, which: str) -> SeedDataset:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Which is not a common parameter naming choice. Name seems preferable.

"""
@classmethod
def seed_dataset_to_list_str(cls, dataset: Path) -> List[str]:
seed_prompts: List[str] = []
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm kind of surprised we're using these as plain strings. It loses all the metadata. That means we lose harm categories, for example. How will one query for the results?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants